package com.dldata.devtools30.entity;

import jakarta.persistence.*;

import java.util.Objects;

@Entity
@Table(name = "devt_api_tjoptcheck")
public class DevtApiTjoptcheckEntity {
    private String id;
    private Integer active;
    private String bz;
    private String checktype;
    private String code;
    private String content;
    private String errorinfo;
    private String fieldcode;
    private String name;
    private String subId;
    
    @Id
    @Column(name = "id", nullable = false, length = 64)
    public String getId() {
        return id;
    }
    
    public void setId(String id) {
        this.id = id;
    }
    
    @Basic
    @Column(name = "active", nullable = true)
    public Integer getActive() {
        return active;
    }
    
    public void setActive(Integer active) {
        this.active = active;
    }
    
    @Basic
    @Column(name = "bz", nullable = true, length = 1024)
    public String getBz() {
        return bz;
    }
    
    public void setBz(String bz) {
        this.bz = bz;
    }
    
    @Basic
    @Column(name = "checktype", nullable = true, length = 64)
    public String getChecktype() {
        return checktype;
    }
    
    public void setChecktype(String checktype) {
        this.checktype = checktype;
    }
    
    @Basic
    @Column(name = "code", nullable = true, length = 64)
    public String getCode() {
        return code;
    }
    
    public void setCode(String code) {
        this.code = code;
    }
    
    @Basic
    @Column(name = "content", nullable = true, length = 2147483647)
    public String getContent() {
        return content;
    }
    
    public void setContent(String content) {
        this.content = content;
    }
    
    @Basic
    @Column(name = "errorinfo", nullable = true, length = 64)
    public String getErrorinfo() {
        return errorinfo;
    }
    
    public void setErrorinfo(String errorinfo) {
        this.errorinfo = errorinfo;
    }
    
    @Basic
    @Column(name = "fieldcode", nullable = true, length = 2147483647)
    public String getFieldcode() {
        return fieldcode;
    }
    
    public void setFieldcode(String fieldcode) {
        this.fieldcode = fieldcode;
    }
    
    @Basic
    @Column(name = "name", nullable = true, length = 255)
    public String getName() {
        return name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
    
    @Basic
    @Column(name = "sub_id", nullable = true, length = 64)
    public String getSubId() {
        return subId;
    }
    
    public void setSubId(String subId) {
        this.subId = subId;
    }
    
    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        DevtApiTjoptcheckEntity that = (DevtApiTjoptcheckEntity) o;
        return Objects.equals(id, that.id) && Objects.equals(active, that.active) && Objects.equals(bz, that.bz) && Objects.equals(checktype, that.checktype) && Objects.equals(code, that.code) && Objects.equals(content, that.content) && Objects.equals(errorinfo, that.errorinfo) && Objects.equals(fieldcode, that.fieldcode) && Objects.equals(name, that.name) && Objects.equals(subId, that.subId);
    }
    
    @Override
    public int hashCode() {
        return Objects.hash(id, active, bz, checktype, code, content, errorinfo, fieldcode, name, subId);
    }
}
